//
//  Api.h
//  News
//
//  Created by  yanguang on 14/6/13.
//  Copyright (c) 2013 yyt. All rights reserved.
//
#import <Foundation/Foundation.h>

@interface Api : NSObject

+ (void)requestWithMethod:(NSString* _Nonnull)method
                 withPath:(NSString* _Nonnull)path
               withParams:(nullable NSDictionary *)params
              withSuccess:(void (^_Nonnull)(id _Nonnull responseObject))success


                withError:(void (^_Nonnull)(NSError* _Nonnull error))failed;


@end
